#ifndef MACROS_H
#define MACROS_H



typedef string T_Socket;

#define MSG_USER_LOGIN		10
#define MSG_SOCKET_RECV		11
#define MSG_SOCKET_ACCEPT	12
#define MSG_PLAYER_HOST_JOIN	13
#define MSG_PLAYER_JOIN		14

#define MSG_PLAYER_JOIN_ACCEPT		20
#define MSG_PLAYER_JOIN_DENY		21

#define MSG_GAME_START		30
#define MSG_GAME_START_ACCEPT		31
#define MSG_GAME_START_DENY		32
//#define MSG_USER_		14


#define PACKET_TYPE_SOCKET	1
#define PACKET_TYPE_CONTENT	2
#define PACKET_TYPE_HOST	3

#define MAP_NOT_CONTAIN(a, b) ( (a).find(b) == (a).end() )

#define POST_MSG_TO GetMsgManager()->MPostMsgTo

#define null (char *)0















#endif